package com.fin.zw.intelligentbot.util;

import javax.websocket.*;

@ClientEndpoint
public class MsgWebSocketClient {

    @OnOpen
    public void onOpen(Session session) {
        System.out.println("Connected to endpoint: " + session.getBasicRemote());
        SocketClient.session=session;
        System.out.println(SocketClient.session);
    }

    @OnMessage
    public void processMessage(String message) {
        System.out.println("Received message in client: " + message);
    }

    @OnError
    public void processError(Throwable t) {
        t.printStackTrace();
    }
}

